import request from "@/utils/request";

// 查询商户列表
export function getMerchantApi(params) {
  return request({
    url: "/merchants/list",
    method: "get",
    params
  });
}

// 根据商户id查询商户详情
export function getMerchantIdApi(params) {
  return request({
    url: "/merchants/info",
    method: "get",
    params
  });
}

// 审核
export function changeOperate(params) {
  return request({
    url: "/merchants/operate",
    method: "post",
    data: params
  });
}

/*       新接口           */
// 查询用户列表
export function getMerchantList(params) {
  return request({
    url: "/Merchant/merchant-list",
    method: "get",
    params
  });
}
// 查询用户数量
export function getMerchantTotal(params) {
  return request({
    url: "/Merchant/merchant-total",
    method: "get",
    params
  });
}
// 审核用户
export function auditMerchant(data) {
  return request({
    url: "/Merchant/merchant-audit",
    method: "post",
    data
  });
}